package jiangzuo

import "aifuture.cloud/response/jiangzuo"

type JianguoSvc struct {
	proccessor JiangzuoInter
}

func NewJianguoSvc(proccessor JiangzuoInter) *JianguoSvc {
	return &JianguoSvc{proccessor: proccessor}
}

func (j *JianguoSvc) List() (error, []*jiangzuo.Jiangzuo) {
	return j.proccessor.List()
}

func (j *JianguoSvc) Detail(id int) (error, interface{}) {
	return j.proccessor.Detail(id)
}
